hvm: TCGBIOS fixes
authorKeir Fraser <keir@xensource.com>
Wed, 17 Oct 2007 09:00:27 +0000 (10:00 +0100)
committerKeir Fraser <keir@xensource.com>
Wed, 17 Oct 2007 09:00:27 +0000 (10:00 +0100)
commitd62f502aaa01b1da046f973555134586a31a5a7d
treeff0d6081c74a8a06153fea69ba43509f50ca9c71
parentd61d5e12e118e714b1e31c84e754339cd71f19c4
hvm: TCGBIOS fixes

Fix IPL measurement of El Torito CD boot and some eventlog formats.

The TCG BIOS extensions are described here:
https://www.trustedcomputinggroup.org/specs/PCClient/TCG_PCClientImplementationforBIOS_1-20_1-00.pdf

- fix cdrom (El Torito) boot (8.2.5.6 El Torito, p63)
   tcpa_ipl() is modified to support various boot devices.
   move some measurement code into cdrom_boot() function.
- fix EV_IPL (0Dh) event (10.4.1 Event Types, p76)
   eventfield size should be zero
- fix EV_SEPARATOR event (3.2.2 Integrity Collection and Reporting,
   p32)
   change eventfield to -1 (0xFFFFFFFF)  from  "---------------"
- add "Returned INT 19h" event (8.2.3 Logging of Boot Events, p59)
   actually, tcgbios does not call int19h, but we extend this
   tentatively

Signed-off-by: Seiji Munetoh <seiji.munetoh@gmail.com>
tools/firmware/rombios/32bit/tcgbios/tcgbios.c
tools/firmware/rombios/32bitprotos.h
tools/firmware/rombios/rombios.c
tools/firmware/rombios/tcgbios.c